package com.bw.goods.feignService;

import com.bw.goods.entity.vo.MiaoShaVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author jwcz
 * @Date 2022/2/24 9:53
 * @Version 1.0
 */
@FeignClient(name = "seckill")
@RequestMapping("/miaosha/miaoshaactivity")
public interface feignService {

    @RequestMapping("/getVO")
    MiaoShaVO getVO(@RequestParam("goodsId")Integer goodsId);

    @RequestMapping("/getStock")
    MiaoShaVO getStock(@RequestParam("userId")Long userId);
}
